home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / hearts.swf / scripts / DefineSprite_638 / frame_1 / DoAction_14.as < prev    next >
Encoding:
Text File  |  2011-12-21  |  1010 b   |  43 lines

  1. this.pauseFunc = function(what)
  2. {
  3.    var t = this;
  4.    var c = t.launcher.cupid;
  5.    if(what == true)
  6.    {
  7.       t.pause = true;
  8.       _quality = "high";
  9.       c.body.arms.anim.stop();
  10.       c.skirt.stop();
  11.       c.body.wing1.stop();
  12.       c.body.wing2.stop();
  13.       c.body.top.stop();
  14.       c.body.head.anim.stop();
  15.       t.fade = "out";
  16.       t.pauseDisplay.gotoAndStop("show");
  17.    }
  18.    else
  19.    {
  20.       t.pause = false;
  21.       if(t.gameType == "real")
  22.       {
  23.          _quality = t.inGameQuality;
  24.       }
  25.       if(c.body.arms.anim._currentframe != c.body.arms.anim._totalframes)
  26.       {
  27.          c.body.arms.anim.play();
  28.       }
  29.       c.skirt.play();
  30.       c.body.wing1.play();
  31.       c.body.wing2.play();
  32.       c.body.top.play();
  33.       c.body.head.anim.play();
  34.       if(t.globalsoundcontrol == "play")
  35.       {
  36.          t.fade = "in";
  37.       }
  38.       t.mainDisplay.fillBlanks();
  39.       t.mainDisplay.gotoAndStop("blank");
  40.       t.pauseDisplay.gotoAndStop("blank");
  41.    }
  42. };
  43.